<?php

namespace api\channel\meituan\alliance;

//只用于拉取订单&请勿用于其他
use GaoweiSpace\MeituanPubUnion\Http\Client;

class TakeoutAgent extends Takeout
{

    //只用于拉取订单&请勿用于其他
    public function __construct(array $params = [])
    {

        echo '去拉取美团外卖代理商配置的接口'.PHP_EOL;

        $baseSupplier = $this->getAgentBaseSupplier(PRODUCT_MEITUAN_TAKEOUT_SERV);

        $this->supplierInfo = $baseSupplier;

        $secret = $this->supplierInfo->api_config['secret'];
        $apikey = $this->supplierInfo->api_config['apikey'];

        $this->client = new \MeituanUnion\Client($apikey, $secret);

    }

}